home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 March / PCWorld_2002-03_cd.bin / Software / TemaCD / xteq / setup.exe / {app} / plugins / XQ Network DC Messages.xpl < prev    next >
Text File  |  2001-01-21  |  1KB  |  39 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Startup\Windows 9x/ME\62) After Login Window"
  5. "NAME"="Domain Controller (DC) Message"
  6. "VERSION"="2.00"
  7. "OSVERSION"="10101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Show message if DC was successfully found"
  10. "DESCRIPTION 1"="Activate "Show message if DC successfully found" to see a message if Windows has successfully connected to a domain controller"
  11. "AUTHOR"="Xteq Systems"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"=" "
  15.  
  16.  
  17. sV1="HKLM\Network\Logon\DomainLogonMessage"
  18. sV2="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ReportDC"
  19.  
  20. Sub Plugin_Initialize 
  21.   i=RegReadValue(sV1)
  22.   if i=1 then SetUIElement 1,true
  23. End Sub
  24.  
  25. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  26.     b=GetUIElement(1)
  27.     if b=true then
  28.        Call RegWriteValue(sV1,"1",2)
  29.     else
  30.       Call RegWriteValue(sV1,"0",2)
  31.     end if
  32. End Sub
  33.  
  34. Sub Plugin_Terminate 
  35. End Sub
  36.  
  37.  
  38.  
  39.